import { TOKEN_KEY } from '@/constants'
import Cookies from "js-cookie";

export const getToken = () => {
  // return localStorage.getItem(TOKEN_KEY)
 return  Cookies.get(TOKEN_KEY);
}

export const setToken = (token: string) => {
 //  localStorage.setItem(TOKEN_KEY, token)
 return  Cookies.set(TOKEN_KEY, token);
}

export const removeToken = () => {

  // localStorage.removeItem(TOKEN_KEY)
  return Cookies.remove(TOKEN_KEY);
}
